import { IPSModelSortable } from '../../ipsmodel-sortable';
import { IPSDESampleData } from './ipsdesample-data';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSDESampleDataImpl extends PSModelObjectImpl implements IPSDESampleData, IPSModelSortable {
  get codeName(): string {
    return this.M.codeName;
  }

  get data(): string {
    return this.M.data;
  }

  get dataJO(): IModel {
    return this.M.dataJO;
  }

  get dataType(): 'JSON' | 'XML' | 'SCRIPT' | 'USER' {
    return this.M.dataType;
  }

  get dynaModelFilePath(): string {
    return this.M.dynaModelFilePath;
  }

  get extendMode(): 0 | 2 {
    return this.M.extendMode != null ? this.M.extendMode : 0;
  }

  get logicMode(): 'INSTALLDATA' {
    return this.M.logicMode;
  }

  get memo(): string {
    return this.M.memo;
  }

  get name(): string {
    return this.M.name;
  }

  get orderValue(): number {
    return this.M.orderValue != null ? this.M.orderValue : 99999;
  }

  get randomCount(): number {
    return this.M.randomCount;
  }

  get randomMode(): 'DEFAULT' {
    return this.M.randomMode;
  }

  get randomParam(): string {
    return this.M.randomParam;
  }

  get randomParam2(): string {
    return this.M.randomParam2;
  }

  get randomParam3(): number {
    return this.M.randomParam3;
  }

  get randomParam4(): number {
    return this.M.randomParam4;
  }

  get userCat(): string {
    return this.M.userCat;
  }

  get userTag(): string {
    return this.M.userTag;
  }

  get userTag2(): string {
    return this.M.userTag2;
  }

  get userTag3(): string {
    return this.M.userTag3;
  }

  get userTag4(): string {
    return this.M.userTag4;
  }

  get cls(): string {
    return 'PSDESampleDataImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'IPSModelSortable' || cls == 'dataentity.jit.IPSDESampleData') return true;
    return super.instanceof(cls);
  }
}
